package com.ssm.anno.service.impl;

import com.ssm.anno.entity.User;
import com.ssm.anno.mapper.UserMapper;
import com.ssm.anno.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author 张富玮
 * @create 2022-01-28 19:58
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> getAllUsers() {
        return userMapper.selectList(null);
    }
}
